package cn.hxth.cloud.service.service;

import cn.hxth.cloud.api.domain.*;
import cn.hxth.cloud.service.commons.config.FeignClientConfig;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value="INVENTORY-PROVIDER",configuration=FeignClientConfig.class)
@RequestMapping("/inventory/")
public interface InventoryService {
    @PutMapping("updateProductInventoryForOrder")
    public Boolean updateProductInventoryForOrder(@RequestBody OrderInfo orderInfo) ;
    @PutMapping("updateSteelsInventoryForOrder")
    public  Boolean updateSteelsInventoryForOrder(@RequestBody ProductionOrder[] productionOrders) ;
    @PutMapping("updateSteelsInputInventory")
    public  Boolean updateSteelsInputInventory(@RequestBody SteelsInputOrder steelsInputOrder);
    @PutMapping("updateSteelsOutputInventory")
    public Boolean updateSteelsOutputInventory(SteelsOutputOrder steelsOutputOrder) ;
    @PutMapping("updateProductOutputInventory")
    public Boolean updateProductOutputInventory(@RequestBody ProductOutputOrder productOutputOrder) ;
    @PutMapping("updateProductInputInventory")
    public Boolean updateProductInputInventory(@RequestBody ProductInputOrder productInputOrder) ;
}
